package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@Document("question_comment")
public class QuestionComment implements Serializable{
    @Id
    private String id;

    private String title;//标题

    private Long userId;//用户id

    private String username;//用户昵称

    private String headUrl;

    private String content;//提问内容

    private Date createTime ;  //发布时间

    private Integer replynum=0;

    private Integer viewnum = 0;

    private Integer sharenum = 0;  //分享不做了,当做关注数

    private Integer thumbsupnum = 0;


    private List<AnswerComment> refAnawer=new ArrayList(); //回答这个问题的客户


}
